<?php
namespace app\common\validate;

use think\Validate;

class UserMemberValidate extends Validate
{
    // 验证规则
    protected $rule = [
        'username|用户' => 'require',
        'password|密码' => 'require',
    ];
    //验证场景
    protected $scene = [
        'add'  => ['username', 'password'],
        'reg'  => ['username', 'password'],
    ];
}